//
//  ZCFileManager.h
//  MHK
//
//  Created by ZhangCheng on 16/7/18.
//  Copyright © 2016年 ZhangSen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

@protocol ZCfileDelegate <NSObject>

-(void)zcFileDelegate;

@end

@interface ZCFileManager : NSObject

@property(nonatomic,copy)NSString *currentId;

@property(nonatomic,copy)NSString* zip_path;
@property(nonatomic,assign)id<ZCfileDelegate>delegate;


+(ZCFileManager *)sharedInstance;
-(BOOL)existFileOfId:(NSString *)stringId;
-(BOOL)existFileOfCurrentId;
-(BOOL)existReportFileOfPaperId:(NSString *)paperId andReportId:(NSString *)reportId;
-(NSString *)directPathForRecordFileOfId:(NSString *)paperId andReportId:(NSString *)reportId;

-(void)downloadAndUnzipFileOfId:(NSString*)stringId Andpath:(NSString*)path completionBlock:(void(^)(void))completionBlock failedBlock:(void(^)(void))failedBlock;

-(NSString*)directPathForFileOfCurrentId;
-(NSString*)directPathForAudioFileOfCurrentId;
-(NSString*)directPathForFileOfId:(NSString*)stringId;

-(NSString *)directPathForRecordFileOfCurrentId;
-(NSString *)directPathForRecordFileOfId:(NSString *)stringId;

-(void)removeFileOfId:(NSString*)stringId;
- (BOOL)zipFilesOfArray:(NSArray *)files ofReportId:(NSString *)reportId;
@end
